#ifndef __NCOV_DATA_H__
#define __NCOV_DATA_H__

#include "wifista.h"
#include "malloc.h"
#include "drv_usart2.h"
#include "delay.h"
#include "cJSON.h"

#include "string.h"
#include "stdio.h"
typedef struct medal{
    char rank[5];
    char countryname[50];
    char count[5];
    char gold[5];
    char silver[5];
    char bronze[5];
    char update_time[50];
    char countryid[10];
}medalObj;

uint8_t build_ssl_connect(char *type, char *ip, char *port);
uint8_t get_api(char *api_addr, uint8_t (*parse_fun)(void));

uint8_t parse_cntv_data(void);
uint8_t parse_mi_data(void);
void gui_show_data(u16 y, medalObj *obj);


#endif


